const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  productionSourceMap: false, // 生成关闭map
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    port: 8081,
    proxy: {
      '/dev-api': {
        target: "http://localhost:8080",
        // target: "http://150.158.30.225:9999",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          ['^' + "/dev-api"]: ''
        }
      },
    },
  },

  chainWebpack: config => {
    config
        .plugin('html')
        .tap(args => {
          args[0].title = "酒店管理系统"
          return args
        })
  }
})
